﻿@using Nop.Core.Domain.Common;
@using Nop.Core.Infrastructure;
@{
    var storeInfomation = EngineContext.Current.Resolve<Nop.Core.Domain.StoreInformationSettings>();
    var displayMiniProfiler = storeInfomation.DisplayMiniProfilerInPublicStore;

    //resources
    //Html.AppendCssFileParts("~/Content/jquery-ui-themes/smoothness/jquery-ui-1.10.3.custom.min.css");

    //Html.AppendScriptParts("~/Scripts/public.ajaxcart.js");
    //Html.AppendScriptParts("~/Scripts/public.common.js");
    //Html.AppendScriptParts("~/Scripts/jquery-migrate-1.2.1.min.js");
    //Html.AppendScriptParts("~/Scripts/jquery-ui-1.10.3.custom.min.js");
    //Html.AppendScriptParts("~/Scripts/jquery.validate.unobtrusive.min.js");
    //Html.AppendScriptParts("~/Scripts/jquery.validate.min.js");
    //Html.AppendScriptParts("~/Scripts/jquery-1.10.2.min.js");

    //X-UA-Compatible tag
    var commonSettings = EngineContext.Current.Resolve<CommonSettings>();

    if (commonSettings.RenderXuaCompatible)
    {
        Html.AppendHeadCustomParts(string.Format("<meta http-equiv=\"X-UA-Compatible\" content=\"{0}\"/>", commonSettings.XuaCompatibleValue));
    }
}
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie6" lang="en"><![endif]--><!--[if IE 7 ]><html class="ie7" lang="en"><![endif]-->
<!--[if IE 8 ]><html class="ie8" lang="en"><![endif]--><!--[if IE 9 ]><html class="ie9" lang="en"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html @Html.Partial("LanguageAttributes")>
<!--<![endif]-->
<head>
    <title>@Html.NopTitle(true)</title>
    <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
    <meta name="description" content="@(Html.NopMetaDescription())" />
    <meta name="keywords" content="@(Html.NopMetaKeywords())" />
    <meta name="generator" content="clothesgate" />
    @Html.NopHeadCustom()
    @*This is used so that themes can inject content into the header*@
    @Html.Partial("Head")
    @Html.Widget("head_html_tag")
    @Html.NopCssFiles(this.Url, ResourceLocation.Head)
    @Html.NopScripts(this.Url, ResourceLocation.Head)
    <script type="text/javascript" id="seajsnode" src="@Url.GetBaseUrl(path: "Themes/sea-modules/seajs/2.3.0/sea.js",rootUrl: storeInfomation.ThemeResourceCdnDomain)"></script>
    <script type="text/javascript">
        seajs.config({
            base: "@Url.GetBaseUrl(path: "Themes/sea-modules", rootUrl: storeInfomation.ThemeResourceCdnDomain)",
            //debug: true,
            paths: {
                // "jquery": "http://code.jquery.com/jquery-1.10.2.min.js",
            },
            charset: 'utf-8',
            // define("jquery/jquery/1.10.1/jquery", [], function () { return jQuery; } );
            alias: {
                // "seajs-debug": "seajs/seajs-debug/1.1.1/seajs-debug",
                "$": "jquery/1.10.2/jquery",
                "jquery": "jquery/1.10.2/jquery" //=={jquery=paths.jquery}/jquery/1.10.1/jquery
            }
        });
    </script>

    @Html.NopCanonicalUrls()
    @Html.Action("RssHeaderLink", "News")
    @Html.Action("RssHeaderLink", "Blog")
    @*Favicon - upload favicon.ico file to the root directory*@
    @Html.Action("Favicon", "Common")
    @if (displayMiniProfiler)
    {
        @StackExchange.Profiling.MiniProfiler.RenderIncludes()
    }
    <!--Powered by clothesgate - http://www.clothesgate.com-->
    <!--Copyright (c) 2010-2018-->
</head>
<body>
    @RenderBody()
    @Html.NopCssFiles(this.Url, ResourceLocation.Foot)
    @Html.NopScripts(this.Url, ResourceLocation.Foot)
</body>
</html>
